package org.example.superb;

import lombok.Data;

import java.util.Objects;

/**
 * Description:
 *
 * @Author maduar maduar@163.com
 * @Date 2022-12-04 21:48
 */
@Data
public class User {

    private String name;
    private int age;

    public User(String name) {
        this.name = name;
    }

    public String getUserName(User user) {
        return user.getName();
    }

    public static String getUserName(String name) {
        User user = new User(name);
        return user.getName();
    }
}
